home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: Nov 24, 1998
- // Author: L. Fung
- //
- // Description:
- // This proc fills the free form surface fillet tool property sheet
- // with values.
- // See also roundProperties.mel
- //
- // Input Arguments:
- // $toolName - this is the name of the instance of the tool
- // that the property sheet is modifying.
- //
- // Return Value:
- // None.
- //
-
-
- global proc roundCRValues ( string $toolName )
- //
- // Description:
- // Sets the state of the property sheet based on the values
- // in the tool context.
- //
- {
- // set my top layout to be the current $parent
- //
- string $parent = (`toolPropertyWindow -q -location` + "|roundCR");
- setParent $parent;
-
- // Set the slider for radius value based on the context's values
- //
- float $radiusToDisplay = eval("roundCRCtx -q -radiusToUse " + $toolName );
- floatSliderGrp -e -v $radiusToDisplay radiusSlider;
-
- // Set the tolerance values
- //
- int $useLocalTolerance = (`roundCRCtx -q -ugt $toolName` == 1)? 1 : 2;
- radioButtonGrp -e -sl $useLocalTolerance commonToleranceOptions;
- if( $useLocalTolerance == 1 ) {
- floatSliderGrp -e -enable false commonPositionalTolerance;
- }
- else if( $useLocalTolerance == 2 ) {
- floatSliderGrp -e -enable true commonPositionalTolerance;
- }
-
- float $tolerance = `roundCRCtx -q -tol $toolName`;
- floatSliderGrp -e -value $tolerance commonPositionalTolerance;
-
- // set property sheet label and icon
- //
- string $icon = "roundSrf.xpm";
- string $helpTag = "RoundTool";
-
- toolPropertySetCommon $toolName $icon $helpTag;
- toolPropertySelect roundCR;
- }
-